guize = -std=c99 
main:serve client
	-./serve.exe
	-./client.exe

.PHONY:serve client

serve:serve.o 
	-gcc serve.o libws2_32.a -o serve.exe $(guize)
	-./serve.exe

serve.o: serve.c
	-gcc -c serve.c $(guize)

client:client.o
	-gcc client.o libws2_32.a -o client.exe $(guize)
	-./client.exe

client.o:client.c
	-gcc -c client.c $(guize)

main.o:main.c
	-gcc -c main.c $(guize)

.PHONY:cls run

run:main.exe
	-./main.exe

cls:
	-del -f -d *.exe
	-del -f -d *.o